module.exports = function(app,entitys,loginRouter,db){
  //商品列表分页查询
  app.get('/product/list',loginRouter, async (req, res) => {
    let key = req.query.key || '' //按昵称、姓名关键字查询
    res.send(await db.query(`select * from product where name like "%${key}%";`))
  })
}